<?php
$this->breadcrumbs=array(
	'Articles'=>array('index'),
	$model->title=>array('view','id'=>$model->aid),
	'Update',
);

$this->menu=array(
	array('label'=>'List Article', 'url'=>array('index')),
	array('label'=>'Create Article', 'url'=>array('create')),
	array('label'=>'View Article', 'url'=>array('view', 'id'=>$model->aid)),
	array('label'=>'Manage Article', 'url'=>array('admin')),
);

$cs=Yii::app()->clientScript;

$dir = Yii::getPathOfAlias('ext.ueditor');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerScriptFile($baseUrl.'/editor_all.js',CClientScript::POS_HEAD );
$cs->registerScriptFile($baseUrl.'/editor_config.js',CClientScript::POS_HEAD );

$dir = Yii::getPathOfAlias('ext.ueditor.themes.default');
$baseUrl = Yii::app()->getAssetManager()->publish($dir);
$cs->registerCssFile($baseUrl.'/ueditor.css');
?>

<script type="text/javascript">
    var ue = new UE.ui.Editor();
    ue.render('Article_content');
</script>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>